#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_exam1.py
# author:王雯雯
# datetime:2024-11-12 
# software: PyCharm

import datetime

def get_week_number_and_weekday(year, month, day, school_start_date=datetime.date(2024, 2, 17)):
    date = datetime.date(year, month, day)
    start_week_number = school_start_date.isocalendar()[1]
    date_week_number = date.isocalendar()[1]
    week_number = date_week_number - start_week_number + 1
    weekday = date.weekday()
    return week_number, weekday